package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IHomeWorkFragmentContract;
import com.clouddot.baipai.contract.INewsFragmentContract;
import com.clouddot.baipai.model.HomeWorkFragmentModel;
import com.clouddot.baipai.model.NewsFragmentModel;
import com.clouddot.baipai.presenter.HomeWorkFragmentPresenter;
import com.clouddot.baipai.presenter.NewsFragmentPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class HomeWorkFragmentModule {

    private IHomeWorkFragmentContract.IView mView;

    public HomeWorkFragmentModule(IHomeWorkFragmentContract.IView view) {
        mView = view;
    }

    @Provides
    public IHomeWorkFragmentContract.IPresenter providerPresenter() {
        return new HomeWorkFragmentPresenter(mView, new HomeWorkFragmentModel(mView.getContext()));
    }
}
